import request from '@/utils/request'

// 查询人脸识别模块列表
export function listFaceCode(query) {
  return request({
    url: '/AlgorithmBusiness/faceCode/list',
    method: 'get',
    params: query
  })
}

// 查询人脸识别模块详细
export function getFaceCode(id) {
  return request({
    url: '/AlgorithmBusiness/faceCode/' + id,
    method: 'get'
  })
}

// 新增人脸识别模块
export function addFaceCode(data) {
  return request({
    url: '/AlgorithmBusiness/faceCode',
    method: 'post',
    data: data
  })
}

// 修改人脸识别模块
export function updateFaceCode(data) {
  return request({
    url: '/AlgorithmBusiness/faceCode',
    method: 'put',
    data: data
  })
}

// 删除人脸识别模块
export function delFaceCode(id) {
  return request({
    url: '/AlgorithmBusiness/faceCode/' + id,
    method: 'delete'
  })
}
